from typing import NamedTuple

name = "name"
nt = NamedTuple(name, [("x", str), ("y", int)])